﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Common.Dto;
using Common.RefitHttp;
using Demo03.RestClient.Dto;
using Refit;

namespace Demo03.RestClient;

/// <summary>
/// 测试refit服务
/// </summary>
[HttpClient(ServiceName = "springboot3-demo01")]
public interface ITestClient
{
    /// <summary>
    /// test接口调用
    /// </summary>
    /// <returns></returns>
    [Get("/test")]
    Task<Dictionary<string, object>> Test();

    /// <summary>
    /// 根据id查询用户
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    [Get("/test/queryUserDto")]
    Task<Result<UserDto>> QueryUserDto(int id);
}